/**
 * "ars_nouveau:enchanters_shield":{"recipe":{
 * "type":"ars_nouveau:enchanting_apparatus",
 * "item_1":[{"tag":"forge:storage_blocks/gold"}],
 * "item_2":[{"tag":"forge:storage_blocks/gold"}],
 * "item_3":[{"tag":"forge:storage_blocks/mana"}],
 * "item_4":[{"tag":"forge:storage_blocks/mana"}],
 * "reagent":[{"item":"minecraft:shield"}],
 * "output":{"item":"ars_nouveau:enchanters_shield"}},
 * "inputs":[
 * {"item":"minecraft:shield"},
 * {"item":"minecraft:gold_block"},
 * {"item":"minecraft:gold_block"},
 * {"item":"ars_nouveau:mana_gem_block"},
 * {"item":"ars_nouveau:mana_gem_block"}],
 * "outputs":[{"item":"ars_nouveau:enchanters_shield","count":1,"nbt":"{Damage:0}"}]}
 */
onEvent('recipes', event => {
  let ec_list = [
    {
      inputs: [
        "astralsorcery:chalice",
        "elementalcraft:aircrystal",
        "elementalcraft:firecrystal",
        "elementalcraft:tank",
        "elementalcraft:earthcrystal",
        "elementalcraft:watercrystal"
      ],
      reagent: "evilcraft:blood_infusion_core",
      output: "elementalcraft:pureinfuser"
    },
    {
      inputs: [
        "evilcraft:box_of_eternal_closure",
        "evilcraft:dark_blood_brick", "evilcraft:dark_blood_brick", "ironfurnaces:gold_furnace", "evilcraft:dark_blood_brick", "evilcraft:dark_blood_brick",
      ],
      reagent: "evilcraft:blood_infusion_core",
      output: "evilcraft:spirit_furnace"
    },
    {
      inputs: [
        "elementalcraft:swift_alloy_ingot", "minecraft:emerald_block", "atum:ceramic_white", "elementalcraft:swift_alloy_ingot", "minecraft:emerald_block", "atum:ceramic_white",
      ],
      reagent: "forbidden_arcanus:pixie_utrem_jar",
      output: "botania:mana_detector"
    },
    {
      inputs: [
        "kubejs:infusion_ingot",
        "kubejs:infusion_ingot",
        "minecraft:diamond_block",
        "minecraft:diamond_block",
        "forbidden_arcanus:arcane_polished_darkstone_pillar",
        "forbidden_arcanus:arcane_polished_darkstone_pillar",
      ],
      reagent: "forbidden_arcanus:corrupted_pixie_utrem_jar",
      output: "forbidden_arcanus:runic_tenebris_frame"
    },
    {
      inputs: [
        "kubejs:item_24",
        "kubejs:item_20",
        "kubejs:item_22",
        "forbidden_arcanus:runic_tenebris_core",
        "botania:mana_detector",
        "atum:crystal_glass",
      ],
      reagent: "evilcraft:blood_infusion_core",
      output: "kubejs:item_21"
    },
    {
      inputs: [
        'create:refined_radiance',
        'botania:life_essence',
        'create:refined_radiance',
        'botania:life_essence',
        'botania:life_essence',
        'create:refined_radiance',
        'botania:life_essence',
        'create:refined_radiance'
      ],
      reagent: 'kubejs:party_3_ingot',
      output: 'botania:gaia_ingot'
    },
    {
      inputs: [
        'ironfurnaces:rainbow_plating',
        'ironfurnaces:rainbow_plating',
        'ironfurnaces:rainbow_plating',
        'ironfurnaces:rainbow_plating',
        'ironfurnaces:rainbow_plating',
        'ironfurnaces:rainbow_plating',
        'ironfurnaces:rainbow_plating',
        'ironfurnaces:rainbow_plating'
      ],
      reagent: 'extendedcrafting:ultimate_singularity',
      output: 'ironfurnaces:rainbow_core'
    },
    {
      inputs: [
        'thermal_extra:nebulium_ingot',
        'draconicevolution:draconium_ingot',
        'projectred-core:electrotine_ingot',
        'botania:gaia_ingot',
        'thermal_extra:dragon_bronze_ingot',
        'thermal_extra:vukaium_ingot',
        'bloodmagic:ingot_hellforged',
        'betternether:cincinnasite_ingot'
      ],
      reagent: 'create:chromatic_compound',
      output: 'extendedcrafting:crystaltine_ingot'
    }
  ]

  /**
  mods.extendedcrafting.TableCrafting.addShaped("c3eddacf-237f-44c9-921d-b90dc0eff75f", 0, <>, [
  [<item:minecraft:yellow_dye>, <item:minecraft:orange_dye>, <item:minecraft:red_dye>], 
  [<item:minecraft:cyan_dye>, <item:extendedcrafting:singularity>, <item:minecraft:purple_dye>], 
  [<item:minecraft:brown_dye>, <item:minecraft:green_dye>, <item:minecraft:blue_dye>]
]);
   */


  ec_list.forEach((i) => {
    if (i.inputs.length == 6) {
      event.custom({
        "type": "ars_nouveau:enchanting_apparatus",
        "item_1": [{ "item": i.inputs[0] }],
        "item_2": [{ "item": i.inputs[1] }],
        "item_3": [{ "item": i.inputs[2] }],
        "item_4": [{ "item": i.inputs[3] }],
        "item_5": [{ "item": i.inputs[4] }],
        "item_6": [{ "item": i.inputs[5] }],
        "reagent": [{ "item": i.reagent }],
        "output": { "item": i.output },
      });
    } else if (i.inputs.length == 8) {
      event.custom({
        "type": "ars_nouveau:enchanting_apparatus",
        "item_1": [{ "item": i.inputs[0] }],
        "item_2": [{ "item": i.inputs[1] }],
        "item_3": [{ "item": i.inputs[2] }],
        "item_4": [{ "item": i.inputs[3] }],
        "item_5": [{ "item": i.inputs[4] }],
        "item_6": [{ "item": i.inputs[5] }],
        "item_7": [{ "item": i.inputs[6] }],
        "item_8": [{ "item": i.inputs[7] }],
        "reagent": [{ "item": i.reagent }],
        "output": { "item": i.output },
      });
    }
  });


  event.custom({
    "type": "ars_nouveau:enchanting_apparatus",
    "item_1": [{ "item": "dyenamics:aquamarine_dye" }],
    "item_2": [{ "item": "dyenamics:fluorescent_dye" }],
    "item_3": [{ "item": "dyenamics:mint_dye" }],
    "item_4": [{ "item": "dyenamics:maroon_dye" }],
    "item_5": [{ "item": "dyenamics:bubblegum_dye" }],
    "item_6": [{ "item": "dyenamics:lavender_dye" }],
    "item_7": [{ "item": "dyenamics:persimmon_dye" }],
    "item_8": [{ "item": "dyenamics:peach_dye" }],
    "reagent": [{
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:inspiration\"}"
    }],
    "output": { "item": 'ironfurnaces:rainbow_coal', count: 3 },
  });

  event.custom({
    "type": "ars_nouveau:enchanting_apparatus",
    "item_1": [{ "item": "botania:light_blue_petal_block" }],
    "item_2": [{ "item": "botania:white_petal_block" }],
    "item_3": [{ "item": "botania:lime_petal_block" }],
    "item_4": [{ "item": "botania:magenta_petal_block" }],
    "item_5": [{ "item": "botania:pink_petal_block" }],
    "item_6": [{ "item": "botania:purple_petal_block" }],
    "item_7": [{ "item": "botania:red_petal_block" }],
    "item_8": [{ "item": "botania:brown_petal_block" }],
    "reagent": [{
      "type": "forge:nbt",
      "item": "extendedcrafting:singularity",
      "count": 1,
      "nbt": "{Id:\"extendedcrafting:inspiration\"}"
    }],
    "output": { "item": 'ironfurnaces:rainbow_coal' },
  });

  event.custom({
    "type": "ars_nouveau:enchanting_apparatus",
    "reagent": [{
      "item": 'bloodmagic:woodbrickpath',
    }],
    "output": { "item": 'ars_nouveau:purple_archwood_log' },
  });



  /**
  {
"type": "extendedcrafting:shapeless_table",
"ingredients": [
  {
    "item": "botania:light_blue_petal_block"
  },
  {
    "item": "botania:white_petal_block"
  },
  {
    "item": "botania:lime_petal_block"
  },
  {
    "item": "botania:magenta_petal_block"
  },
  {
    "item": "botania:pink_petal_block"
  },
  {
    "item": "botania:purple_petal_block"
  },
  {
    "item": "botania:red_petal_block"
  },
  {
    "item": "botania:brown_petal_block"
  }
}]
   */
});